package com.i8office.android.zhihuixinwu.ui.schedule;

import java.text.SimpleDateFormat;
import java.util.Calendar;

public class Meetting {

    /**
     * TaskID : 6274cd1b-daa3-4212-ab51-7e1bc1a76a72
     * EmplID : 100001
     * Title : tet1
     * IsFinished : false
     * IsImportant : false
     * CreateTime : /Date(1557738394253)/
     * StartDate : /Date(1558368000000)/
     * StartTime : {"Hours":22,"Minutes":40,"Seconds":0,"Milliseconds":0,"Ticks":816000000000,"Days":0,"TotalDays":0.9444444444444444,"TotalHours":22.666666666666664,"TotalMilliseconds":81600000,"TotalMinutes":1360,"TotalSeconds":81600}
     * Location : dsfs1f
     * RemindTime : /Date(253402271999997)/
     * HasAttachment : false
     * IsSharedToOthers : false
     * SharedFromUser :
     * SharedFromTaskID :
     * UserSort :
     * ExtID :
     * ExtData :
     * AppName :
     * TimeQuantum : 3
     * RemindTimeOffsetMinutes :
     * DeptName : bumen1
     */

    private String TaskID;
    private String EmplID;
    private String Title;
    private boolean IsFinished;
    private boolean IsImportant;
    private String CreateTime;
    private String StartDate;
    private StartTimeBean StartTime;
    private String Location;
    private String RemindTime;
    private boolean HasAttachment;
    private boolean IsSharedToOthers;
    private String SharedFromUser;
    private String SharedFromTaskID;
    private String UserSort;
    private String ExtID;
    private String ExtData;
    private String AppName;
    private int TimeQuantum;
    private String RemindTimeOffsetMinutes;
    private String DeptName;

    public String getTaskID() {
        return TaskID;
    }

    public void setTaskID(String TaskID) {
        this.TaskID = TaskID;
    }

    public String getEmplID() {
        return EmplID;
    }

    public void setEmplID(String EmplID) {
        this.EmplID = EmplID;
    }

    public String getTitle() {
        return Title;
    }

    public void setTitle(String Title) {
        this.Title = Title;
    }

    public boolean isIsFinished() {
        return IsFinished;
    }

    public void setIsFinished(boolean IsFinished) {
        this.IsFinished = IsFinished;
    }

    public boolean isIsImportant() {
        return IsImportant;
    }

    public void setIsImportant(boolean IsImportant) {
        this.IsImportant = IsImportant;
    }

    public String getCreateTime() {
        return CreateTime;
    }

    public void setCreateTime(String CreateTime) {
        this.CreateTime = CreateTime;
    }

    public String getStartDate() {
        return StartDate;
    }

    public void setStartDate(String StartDate) {
        this.StartDate = StartDate;
    }

    public StartTimeBean getStartTime() {
        return StartTime;
    }

    public void setStartTime(StartTimeBean StartTime) {
        this.StartTime = StartTime;
    }

    public String getLocation() {
        return Location;
    }

    public void setLocation(String Location) {
        this.Location = Location;
    }

    public String getRemindTime() {
        return RemindTime;
    }

    public void setRemindTime(String RemindTime) {
        this.RemindTime = RemindTime;
    }

    public boolean isHasAttachment() {
        return HasAttachment;
    }

    public void setHasAttachment(boolean HasAttachment) {
        this.HasAttachment = HasAttachment;
    }

    public boolean isIsSharedToOthers() {
        return IsSharedToOthers;
    }

    public void setIsSharedToOthers(boolean IsSharedToOthers) {
        this.IsSharedToOthers = IsSharedToOthers;
    }

    public String getSharedFromUser() {
        return SharedFromUser;
    }

    public void setSharedFromUser(String SharedFromUser) {
        this.SharedFromUser = SharedFromUser;
    }

    public String getSharedFromTaskID() {
        return SharedFromTaskID;
    }

    public void setSharedFromTaskID(String SharedFromTaskID) {
        this.SharedFromTaskID = SharedFromTaskID;
    }

    public String getUserSort() {
        return UserSort;
    }

    public void setUserSort(String UserSort) {
        this.UserSort = UserSort;
    }

    public String getExtID() {
        return ExtID;
    }

    public void setExtID(String ExtID) {
        this.ExtID = ExtID;
    }

    public String getExtData() {
        return ExtData;
    }

    public void setExtData(String ExtData) {
        this.ExtData = ExtData;
    }

    public String getAppName() {
        return AppName;
    }

    public void setAppName(String AppName) {
        this.AppName = AppName;
    }

    public int getTimeQuantum() {
        return TimeQuantum;
    }

    public void setTimeQuantum(int TimeQuantum) {
        this.TimeQuantum = TimeQuantum;
    }

    public String getRemindTimeOffsetMinutes() {
        return RemindTimeOffsetMinutes;
    }

    public void setRemindTimeOffsetMinutes(String RemindTimeOffsetMinutes) {
        this.RemindTimeOffsetMinutes = RemindTimeOffsetMinutes;
    }

    public String getDeptName() {
        return DeptName;
    }

    public void setDeptName(String DeptName) {
        this.DeptName = DeptName;
    }

    public static class StartTimeBean {
        /**
         * Hours : 22
         * Minutes : 40
         * Seconds : 0
         * Milliseconds : 0
         * Ticks : 816000000000
         * Days : 0
         * TotalDays : 0.9444444444444444
         * TotalHours : 22.666666666666664
         * TotalMilliseconds : 81600000
         * TotalMinutes : 1360
         * TotalSeconds : 81600
         */

        private int Hours;
        private int Minutes;
        private int Seconds;
        private int Milliseconds;
        private String Ticks;
        private int Days;
        private String TotalDays;
        private String TotalHours;
        private int TotalMilliseconds;
        private int TotalMinutes;
        private int TotalSeconds;

        public int getHours() {
            return Hours;
        }

        public void setHours(int Hours) {
            this.Hours = Hours;
        }

        public int getMinutes() {
            return Minutes;
        }

        public void setMinutes(int Minutes) {
            this.Minutes = Minutes;
        }

        public int getSeconds() {
            return Seconds;
        }

        public void setSeconds(int Seconds) {
            this.Seconds = Seconds;
        }

        public int getMilliseconds() {
            return Milliseconds;
        }

        public void setMilliseconds(int Milliseconds) {
            this.Milliseconds = Milliseconds;
        }

        public String getTicks() {
            return Ticks;
        }

        public void setTicks(String Ticks) {
            this.Ticks = Ticks;
        }

        public int getDays() {
            return Days;
        }

        public void setDays(int Days) {
            this.Days = Days;
        }

        public String getTotalDays() {
            return TotalDays;
        }

        public void setTotalDays(String TotalDays) {
            this.TotalDays = TotalDays;
        }

        public String getTotalHours() {
            return TotalHours;
        }

        public void setTotalHours(String TotalHours) {
            this.TotalHours = TotalHours;
        }

        public int getTotalMilliseconds() {
            return TotalMilliseconds;
        }

        public void setTotalMilliseconds(int TotalMilliseconds) {
            this.TotalMilliseconds = TotalMilliseconds;
        }

        public int getTotalMinutes() {
            return TotalMinutes;
        }

        public void setTotalMinutes(int TotalMinutes) {
            this.TotalMinutes = TotalMinutes;
        }

        public int getTotalSeconds() {
            return TotalSeconds;
        }

        public void setTotalSeconds(int TotalSeconds) {
            this.TotalSeconds = TotalSeconds;
        }
        public String getHMTime() {
            SimpleDateFormat format = new SimpleDateFormat("hh:mm");
            Calendar calendar = Calendar.getInstance();
            calendar.set(Calendar.HOUR_OF_DAY, Hours);
            calendar.set(Calendar.MINUTE, Minutes);
            return format.format(calendar.getTimeInMillis());
        }
    }
}
